package com.hy.erp.inventory.pojo;

import java.io.Serializable;

import javax.ejb.Remove ;
import javax.ejb.Stateful ;
import javax.persistence.Column ;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Index ;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Destroy ;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import com.hy.erp.inventory.dao.interfaces.IUserDao;
import com.hy.erp.inventory.pojo.interfaces.IUser;
import com.hy.erp.inventory.pojo.interfaces.IDepot;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;


/*@Entity
@Name("user")
@Scope(ScopeType.SESSION)
@Table(name="users")
@ DaoA ( IUserDao.class )*/
public class User extends AbstractPersistentEntity implements Serializable ,IUser{

	
	/**
	 * <ul>
	 * <li>开发作者：汤莉</li>
	 * <li>设计日期：2010-10-8；时间：下午03:10:29</li>
	 * <li>字段类型：long；字段名称：serialVersionUID</li>
	 * <li>设计目的：</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 */
	private static final long	serialVersionUID	=
														- 7298593897626630328L ;

	public User(){}

	

	@Column(name="userName",unique=false,nullable=true,insertable=true,updatable=true)
	@Index(name="userNameIndex")
	public String getUsername() {
		return this.get(IUser.USERNAME);
	}

	public void setUsername(String username) {
		super.set (IUser.USERNAME , username );
	}

	@Column(name="password",unique=false,nullable=true,insertable=true,updatable=true)
	public String getPassword() {
		return this.get(IUser.PASSWORD);
	}

	public void setPassword(String password) {
		super.set (IUser.PASSWORD , password );
	}

	@Column(name="name",unique=false,nullable=true,insertable=true,updatable=true)
	public String getName() {
		return this.get(IUser.NAME);
	}

	public void setName(String name) {
		super.set (IUser.NAME , name );
	}

	@Column(name="processInstanceId",unique=false,nullable=true,insertable=true,updatable=true)
	public String getProcessInstanceId() {
		return this.get(IUser.PROCESSINSTANCEID);
	}

	public void setProcessInstanceId(String processInstanceId) {
		super.set (IUser.PROCESSINSTANCEID , processInstanceId );
	}
	
}
